<!--余额详情页-->
<template>

  <div class="continer">
    <nav-bar title="余额详情" bgColor="" @leftAction="_leftAction"></nav-bar>
    <!--head-->
    <div class="head"></div>
    <!--body-->
    <div class="body">
      <div class="bodyBase">
        <div class="cell" v-for="item,index in info">
          <div class="des">
            <span class="left">{{item.name}}</span>
            <span class="right">{{item.des}}</span>
          </div>
          <div class="line"></div>
        </div>
      </div>

    </div>
    <!--card-->
    <div class="card">
      <div class="cardHead">
        <span class="sp1">sssss</span>
        <span class="sp2">ssssssssssss</span>
        <div class="line"></div>
      </div>
      <div class="cardBody">
          <span class="left">¥113311</span>
        <span class="right">已绑定</span>
      </div>

    </div>

  </div>

</template>

<script>
import navBar from '@/components/navBar'

export default {
  name: 'BalanceDetail',
  components: {navBar},
  data () {
    return {
      info: [
        {name: '有效期', des: '2019/3/31'},
        {name: '有效期', des: '2019/3/31'},
        {name: '有效期', des: '2019/3/31'},
      ],

    }
  },
  methods: {
    _leftAction () {
      this.$router.go(-1)

    },
  },
}
</script>

<style scoped lang="less">

  .continer {

    /*=====================*/
    .head {
      width: 3.75rem;
      height: 1.54rem;
      background-color: #EEF1FC;
    }

    /*======================*/
    .body {
      width: 3.75rem;
      height: 4rem;
      background-color: #fff;
      overflow: hidden;
      .bodyBase {
        margin-top: 1.23rem;
        .cell {
          width: 3.75rem;
          height: 0.45rem;
          background-color: #ffffff;
          /*margin-top: 1.23rem;*/
          .des {
            line-height: 0.45rem;
            padding: 0 0.42rem;
            overflow: hidden;
            .left {
              color: #333333;
              font-size: 0.14rem;
              display: inline-block;
              float: left;
            }
            .right {
              color: #333333;
              font-size: 0.14rem;
              text-align: right;
              display: inline-block;
              float: right;
            }
          }
          .line {
            width: 2.98rem;
            height: 0.01rem;
            background-color: #090eea;
            position: absolute;
            margin-left: 0.36rem;
          }
        }
      }
    }

    /*=========================*/
    .card {
      width: 3.19rem;
      height: 1.92rem;
      background-color: #FF605F;
      position: absolute;
      top: 1.01rem;
      left: 0.28rem;
      border-radius: 0.1rem;
      padding: 0 0.2rem;
      .cardHead {
        width: 100%;
        margin-top: 0.17rem;

        .sp1 {
          line-height: 0.2rem;
          font-size: 0.14rem;
          color: white;
          opacity: 0.6;
          display: inline-block;

        }
        .sp2 {
          line-height: 0.22rem;
          font-size: 0.16rem;
          color: white;
          display: block;
        }
        .line {
          width: 100%;
          height: 0.01rem;
          margin-top: 0.08rem;
          background-color: white;
          opacity: 0.5;
        }
      }
      .cardBody{
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        margin-top: 0.6rem;
        .left{
          color: white;
          font-size: 0.3rem;
          line-height: 0.42rem;
        }
        .right{
          color: #ffffff;
          font-size: 0.14rem;
          line-height: 0.20rem;
          position: absolute;
          right: 0;
          bottom: 0;
        }
      }
    }

  }


</style>
